package com.xiaoniu.mc.client.message;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @类描述：
 * @创建人：林继丰
 * @创建时间：2017/8/17 17:10
 * @版权：Copyright (c) 深圳市牛鼎丰科技有限公司-版权所有.
 */
public class RecieveMessageWrapper implements Serializable {

    private static final long serialVersionUID = 4906118848960139858L;
    //消息主体
    private Object messageBody;

    //队列名称
    private int queueId;

    //主题
    private String topic;

    //标签名称
    private String tags;

    //key
    private String keys;

    public RecieveMessageWrapper(Object messageBody, int queueId, String topic, String tags, String keys) {
        this.messageBody = messageBody;
        this.queueId = queueId;
        this.topic = topic;
        this.tags = tags;
        this.keys = keys;
    }

    public Object getMessageBody() {
        return messageBody;
    }

    public void setMessageBody(Object messageBody) {
        this.messageBody = messageBody;
    }

    public int getQueueId() {
        return queueId;
    }

    public void setQueueId(int queueId) {
        this.queueId = queueId;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tag) {
        this.tags = tag;
    }

    public String getKeys() {
        return keys;
    }

    public void setKeys(String key) {
        this.keys = key;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
